<form id="info-form" method="post">
    <table>
        <input type="hidden" name="id" value="{{$role_id}}" />
        @foreach($arr as $key => $info1)
        <tr>
            <td><input type="checkbox" name="checkbox[]" value="{{$info1['id']}}" @if(in_array($info1['id'],$arr1)) checked @endif />{{$info1['realname']}}</td>
        </tr>
        @endforeach
    </table>
</form>

